﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CaltechSoft.Service.Infrastructure
{
    public class SearchResult<T>
    {
        private readonly int _count;
        private readonly IList<T> _items;

        public SearchResult(IList<T> items, int count)
        {
            _items = items;
            _count = count;
        }

        public IList<T> Items
        {
            get { return _items; }
        }

        public int Count
        {
            get { return _count; }
        }
    }
}
